package com.rajaev.dtu.tractor.infrastructure.base.errors;

public enum ErrorCodes {

    USER_NOT_EXISTS(100160001,"用户不存在","用户不存在"),
    ERR_PASSWORD(100160002,"密码不正确","密码不正确"),
    ERR_SYSTEM(100160003,"系统级别异常","系统级别异常"),
    ERR_USER_AUTHINFO(100160004,"登录信息已经过期","登录信息已经过期，请重新登录"),
    ERR_ROLE_HAS_EXIST(100160005,"角色已经存在","角色已经存在"),
    ERR_USER_HAS_EXIST(100160006,"用户已经存在","用户已经存在"),
    ERR_OLD_SYSTEM(100160007,"原密码不正确","原密码不正确"),
    ERR_CUSTOMER_HAS_EXIST(100160008,"客户已经存在","客户已经存在"),
    ERR_NEWPASSWORD_CANNOT_SAME_WITH_DEFAULT(100160009,"新密码不能与初始密码相同","新密码不能与初始密码相同"),
    ERR_CUSTOMER_LICENCE_HAS_EXIST(100160010,"客户执照重复","客户执照重复"),
    ERR_CUSTOMER_SFZ_HAS_EXIST(100160011,"客户身份证号重复","客户身份证号重复"),
    ERR_AUTH_INFO(100160012,"授权信息异常","授权信息异常"),
    ERR_VIN_IS_EXISTS(100160013,"vin已经存在","vin已经存在"),
    ERR_USER_INVALID(100160014,"用户已经失效","用户已经失效"),
    ERR_USER_NO_IN_USE(100160015,"用户未启用","用户未启用"),
    TBOXNUM_NOT_IN_HQ_SYNC_DATABASE(100160016,"该tbox编号没有在鸿泉同步的设备库中",
            "该tbox编号没有在鸿泉同步的设备库中"),
    ERR_UPDATE_0_ROWS(100160017,"修改行数为0","没有修改成功"),
    ERR_PLATE_NUMBER_PATTERN(100160018,"错误的车牌号格式","错误的车牌号格式"),
    PARAM_NOT_NULL(100160019,"参数不能为空","参数不能为空"),
    ERR_VIN(100160020,"错误的vin格式","错误的vin格式"),
    ERR_VIN_NOT_EXISTS_IN_CAR_WEB(100160021,"车网中没有对应的vin信息","车网中没有对应的vin信息"),
    ERR_MONITOR_DATA_CAN_NOT_USE(100160022,"监控数据暂不可用，数据号未同步","监控数据暂不可用"),
    ERR_DISK_FILE_IS_TOO_MUCH_THAN_200(100160023,"磁盘文件以及超过了200个","磁盘文件以及超过了200个，请先删除以及下载的文件"),
    ERR_VIN_IS_NOT_EXISTS(100160024,"vin不存在","vin不存在"),
    ERR_LOGIN_NAME_EXISTS(100160025,"登录名已存在","登录名已存在"),
    ERR_USER_HAS_NO_CUSTOMER(100160026,"登录用户没有所属的客户","登录用户没有所属的客户"),
    ERR_LOGIN_NAME_IS_TOO_LONG(100160027,"登录名不能超过20位","登录名不能超过20位"),
    ERR_LOGIN_NAME_PATTERN(100160028,"登录名不满足规则","登录名不满足规则：字母、数字、下划线混合，最多20位"),
    ERR_LOGIN_NAME_HAS_USED(100160029,"登录名已经存在","登录名已经存在"),
    S2M_SERVICE_NOT_IN_USER(100160030,"S2M系统服务不可用","S2M系统服务不可用"),
    BATTERY_IS_OFFLINE(100160031,"设备不在线","设备不在线"),
    INSTRUCTION_SEND_TIMEOUT(100160032,"发送超时","发送超时"),
    ERR_USER_TYPE(100160033,"管理用户不允许新建项目组","管理用户不允许新建项目组"),
    ERR_QUERY_TYPE(100160034,"查询参数传入错误","查询参数传入错误"),


    ;

    private int errorCode;

    private String innerErrorMsg;

    private String outErrorMsg;

    ErrorCodes(int errorCode, String innerErrorMsg, String outErrorMsg) {
        this.errorCode = errorCode;
        this.innerErrorMsg = innerErrorMsg;
        this.outErrorMsg = outErrorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public String getInnerErrorMsg() {
        return innerErrorMsg;
    }

    public String getOutErrorMsg() {
        return outErrorMsg;
    }
}
